package com.wk1un2.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wk1un2.dao.StudentsDao;
import com.wk1un2.entity.Students;
import com.wk1un2.service.StudentsService;

@Service
public class StudentsServiceImpl extends ServiceImpl<StudentsDao, Students> implements StudentsService {
	@Autowired
	private StudentsDao studentsdao;

//咨询经理
	@Override
	public List<Map<String, Object>> getAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.getAll(map);
	}

	@Override
	public Integer count(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.count(map);
	}

	@Override
	public Integer insert(Students students) {
		// TODO Auto-generated method stub
		return studentsdao.insert(students);
	}

	@Override
	public Integer update(Students students) {
		// TODO Auto-generated method stub
		return studentsdao.updateById(students);
	}

	@Override
	public Integer delete(Integer stuid) {
		// TODO Auto-generated method stub
		return studentsdao.deleteById(stuid);
	}

	@Override
	public List<Students> getByUserid(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.getByUserid(map);
	}

	@Override
	public List<Students> getByLineUserid(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.getByLineUserid(map);
	}

	@Override
	public List<Students> getChecked(List<Integer> ls) {
		// TODO Auto-generated method stub
		return studentsdao.getChecked(ls);
	}

	@Override
	public Integer getChooseModifyCounselor(List<Integer> ls, Integer userid) {
		// TODO Auto-generated method stub
		return studentsdao.getChooseModifyCounselor(ls, userid);
	}

	@Override
	public List<Students> getDispense(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.getDispense(map);
	}

	@Override
	public List<Students> getUndistributed(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.getUndistributed(map);
	}

	@Override
	public Integer countDispense(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.countDispense(map);
	}

	@Override
	public Integer countUndistributed(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.countUndistributed(map);
	}

	@Override
	public Integer getByLineUseridCount(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return studentsdao.getByLineUseridCount(map);
	}

}
